package org.example.study.sc.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @program: rabbitmq-study
 * @description:
 * @Version V1.0.0
 * @author: dazhi
 * @create: 2021-01-28 11:46
 **/
@Getter
@Setter
@TableName("goods_stock")
public class GoodsStock {
    /**
     * 商品id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    //商品Id
    private Long  goodsId;
    //库存数量
    private Integer stockCount;
    //锁用数量
    private Integer lockCount;
    //限购数量
    private  Integer restrictCount;

}
